newBuilder

open fun newBuilder(number: String, expirationDate: YearMonth): CreditCard.Builder

Creates a new CreditCard builder with the given required parameters.

Return

a new CreditCart.Builder instance

Since

8.0.0

Parameters

number

the card number, consisting solely of digits, with no separators

expirationDate

the expiration date

Throws

if the given number contains non-digit characters